package com.lantu.pojo.member;

import com.lantu.core.entity.Member;
import com.lantu.utils.BeanUtils;
import lombok.Data;

@Data
public class LoginMember {
    private String id;
    private String username;
    private String avatar;

    public static LoginMember newInstance(Member member) {
        return BeanUtils.toBean(member, LoginMember.class);
    }
}
